﻿/************************************************
 * Copyright (C) 2011 东北农业大学(NEAU)
 * 版权所有。
 * 文件名：ExamineList.aspx.cs
 * 版本号：v1.0
 * 文件功能描述：审核信息显示
 * 作者：侯建
 * 创建日期：2011.04.16
************************************************/
using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Jxym.DBUtility;
using Newtonsoft.Json;

namespace Jxym.wlkc2011.Module.Default.server.ToStockRoom
{
    public partial class ToStockRoomName : System.Web.UI.Page
    {
        string str = "";
        MsSqlDal<model.StockRoom> icc = new MsSqlDal<model.StockRoom>();
        //MsSqlDal<model.StockRoom> icc = new MsSqlDal<model.StockRoom>();
        protected void Page_Load(object sender, EventArgs e)
        {
            IList<model.StockRoom> icclist = icc.GetList("", null, "", 0);
            if (icclist.Count > 0)
            {
                str = "[";
                foreach (model.StockRoom c in icclist)
                {
                    str += "{'id':" + c.ID + ",'text':'" + c.StockRoomName + "','leaf':true},";
                }
                str = str.TrimEnd(',');
                str += "]";
                Response.Write(str);
            }
        }
    }
}